/**
 * 
 */
package com.beta.restapi.request.auth;

import com.fasterxml.jackson.annotation.JsonProperty;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

/**
 * @author vector
 *
 */
public class AuthRequest {

	@NotNull
	@Valid
	@JsonProperty("auth")
	private AuthInfo auth;

	/**
	 * @return the auth
	 */
	public AuthInfo getAuth() {
		return auth;
	}

	/**
	 * @param auth the auth to set
	 */
	public void setAuth(AuthInfo auth) {
		this.auth = auth;
	}

	public class AuthInfo {

		@NotBlank(message = "E00100")
		public String username;

		@NotBlank(message = "E00101")
		public String password;

		/**
		 * @return the username
		 */
		public String getUsername() {
			return username;
		}

		/**
		 * @param username the username to set
		 */
		public void setUsername(String username) {
			this.username = username;
		}

		/**
		 * @return the password
		 */
		public String getPassword() {
			return password;
		}

		/**
		 * @param password the password to set
		 */
		public void setPassword(String password) {
			this.password = password;
		}
	}


}
